<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    @vite(['resources/css/app.css', 'resources/js/learn/l008.js'])
</head>
<body>
    <div id="app">
        <h1>条件渲染</h1>
        <button @click="awesome = !awesome">Toggle</button>
        <h2 v-if="awesome">Vue is awesome!</h2>
        <h2 v-else>Oh no!</h2>

        <div>
            <select name="" id="" v-model="type">
                <option value="A">A</option>
                <option value="B">B</option>
                <option value="C">C</option>
                <option value="D">D</option>
            </select>
        </div>
        <div v-if="type === 'A'">哎哟不错哦</div>
        <div v-else-if="type === 'B'">哎哟</div>
        <div v-else-if="type === 'C'">哎哟哟</div>
        <div v-else>呜哈哈哈</div>
    </div>
</body>
</html>